
public class MusicBoxFactory {
	public static MusicBox getInstance(String className){	
		MusicBox box=null;
		if("PianoBox".equals(className)){
			box=new PianoBox();
		}
		if("ViolinBox".equals(className)){
			box=new ViolinBox();
		}
		return box;
	}
}
